﻿@using CoralNode.Core.Entity.Domains.User
@using CoralNode.Core.Entity.Enums
@using CoralNode.MvcClient.Helper
@using Coralcode.Utils.Basic
@model CoralNode.Open.Entity.Domains.ApplicationDomain

@{
    ViewBag.Title = "Edit";
}
@Html.IncludePage("CoralAdmin/Application", "_Left", new { current = "Application" })
<div id="pbody">
    <div class="extra">
        <div class="pbody_top">
            <span class="ico ico_setting_system"></span><span class="t t_c">应用管理&nbsp;&nbsp;/&nbsp;&nbsp;<b
                class=" t_small f_no">添加应用</b></span>
        </div>
        <div id="main">
            <div class="local">
                <a href="/m/Application" class="ico ico_back btn"></a>
            </div>
           
            <form id="spform" action="/m/Application/createApplication" method="post" enctype="multipart/form-data">
                @if (@ViewBag.Msg != null)
                {
                    <div class="error_msg">
                        @ViewBag.Msg.Msg
                    </div>
                }
                <div class="pt_3 js_tabcnt">
                    <div class="table_form form_main ">
                        <div class="pl_2 pb_3">
                            @Html.AntiForgeryToken()
                            @Html.ValidationSummary(true)
                            <table>
                                <tbody>
                                    <tr>
                                        <th width="60">应用名称<span class="rq">*</span></th>
                                        <td>
                                            @Html.TextBoxFor(m => m.Name, new { @class = "text w_37 required" })
                                            
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>应用Url<span class="rq">*</span></th>
                                        <td>@Html.TextBoxFor(m => m.Url, new { @class = "text w_37 required" })
                                           
                                        </td>
                                    </tr>
                                    <tr>
                                        <th width="60">AppKey<span class="rq">*</span></th>
                                        <td>
                                            @Html.TextBoxFor(m => m.AppKey, new { @class = "text w_37 required" })
                                        </td>
                                    </tr>
                                      <tr>
                                        <th width="60">AppSecret<span class="rq">*</span></th>
                                        <td>
                                            @Html.TextBoxFor(m => m.AppSecret, new { @class = "text w_37 required" })
                                        </td>
                                    </tr>
                                     <tr>
                                        <th>描述<span class="rq">*</span></th>
                                        <td>@Html.TextAreaFor(m => m.Description, new { @class = " w_37 required" })
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <div class="submitbox p_2 extra_normal">
                    <input type="submit" class="btn_1" value="提    交" />
                </div>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(document).ready(function () {
        $('.nav_left_style2').find('li').eq(0).addClass('current');
    });
</script>
